class CreateTasks < ActiveRecord::Migration
  def self.up
    create_table :tasks do |t|
      t.integer :story_id
      t.task_id :parent_task
      t.integer :task_state_id
      t.text :description
      t.integer :created_by_user_id
      t.integer :claimed_by_user_id

      t.timestamps
    end
  end

  def self.down
    drop_table :tasks
  end
end
